package com.wangsong.system.vo;

import com.wangsong.system.entity.User;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotEmpty;
import jakarta.validation.constraints.NotNull;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class UserUpdateVO extends User implements Serializable {
    @NotNull(message = "id不能为空")
    private Long id;
    @NotEmpty(message = "roleId不能为空")
    private Long[] roleId;
}